function imageLoader(gameObjectTypes) {
	//maps
	this.desertMap = new Image();
	this.desertMap.src = 'content/maps/desertMap.png';

	//minimap
	for(var i = 0; i < 2; i++) {
		this['dot' + i] = new Image();
		this['dot' + i].src = 'content/sprites/dot' + i + '.png';
	}

	//sprites
	for(var goName in gameObjectTypes){
		for(var i = 0; i < 2; i++) {
			var idleName = goName + 'Idle' + i;
		    this[idleName] = new Image();
			this[idleName].src = 'content/sprites/' + idleName + '.png';
			var attackName = goName + 'Attack' + i;
		    this[attackName] = new Image();
			this[attackName].src = 'content/sprites/' + attackName + '.png';
		}
	}
}
